﻿<?php
	if (!isset($_SESSION)) {
		session_start();
	}
	if($this->router->class != "news" and $this->router->method !="search") $this->session->unset_userdata("search");
	//$this->load->view("template/ty_gia_ngoai_te.php");
	//$data_gold = tygiavang();
	//$data_money = getExchangeRatesVCB();
	//$LANG =& load_class('Lang', 'core');
	//$LANG->load('home');
	//$LANG->line('amount');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta id="meta_referrer" content="default" name="referrer"/>
	<meta content="the vista cần cho thuê, appartment the vista for rent, appartment the vista, the vista" name="description"/>
	<title>Apartment for rent in HCMC | Apartment for lease in HCMC | Apartment for sale in HCMC | Saigon pearl | The Manor | The vista | Appartment the vista for rent | Appartment the vista | The vista cần cho thuê | The vista for lease | The Manor Officetel  | khvrealestate.com </title>
	<link href="<?php echo base_url()?>public/css/home/main.css" rel="stylesheet" type="text/css" />
	<script src="<?php echo base_url()?>public/scripts/home/swfobject_modified.js" type="text/javascript"></script>
	<script src="<?php echo base_url()?>public/js/jquery-1.11.2.min.js" type="text/javascript"></script>
	<!--script src="<?php echo base_url()?>public/js/ajax_money_gold.js" type="text/javascript"></script-->
</head>
<body>
<input type="hidden" id="base_url" value="<?php echo base_url()?>"/>
<div id="outer">
	<div id="flash">
		<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000" height="200">
			<param name="movie" value="<?php echo base_url()?>public/images/home/banner.swf" />
    	  	<param name="quality" value="high" />
    	  	<param name="wmode" value="opaque" />
    	  	<param name="swfversion" value="6.0.65.0" />
    	  	<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
    	  	<param name="expressinstall" value="<?php echo base_url()?>public/images/scripts/expressInstall.swf" />
    	  	<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    	  	<!--[if !IE]>-->
    	  	<object type="application/x-shockwave-flash" data="<?php echo base_url()?>public/images/home/banner.swf" width="1000" height="200">
	    	    <param name="quality" value="high" />
	    	    <param name="wmode" value="opaque" />
	    	    <param name="swfversion" value="6.0.65.0" />
	    	    <param name="expressinstall" value="Scripts/expressInstall.swf" />
  	    	</object>
  	    	<!--<![endif]-->
		</object>
	</div><!--end flash-->
  	<?php $this->load->view("template/menu_top");?>
   	<div id="outer_3main">
    	<div id="left" class="clear">
			<?php $this->load->view("template/menu_left.php");?>
        	<div class="search">
	        	<form action="<?php echo base_url()?>news/search" method="post">
    	        	<span class="txt"><?php if(empty($_SESSION['lang'])) echo "Code:" ;else echo "Mã tin:"?></span>
    	        	<input type="text" class="txt_input" name="code" value="<?php echo isset($_REQUEST['code'])?$_REQUEST['code']:'';?>"/><div style="clear : both"></div>
        	        <span class="txt"><?php if(empty($_SESSION['lang'])) echo "Keyword:" ;else echo "Từ khóa:"?></span>
        	        <input type="text" class="txt_input" name="keyword" value="<?php echo isset($_REQUEST['keyword'])?$_REQUEST['keyword']:'';?>"/><div style="clear : both"></div>
            	    <span class="txt"><?php if(empty($_SESSION['lang'])) echo "Demand:" ;else echo "Nhu cầu:"?></span>
                	<select class="slt_input" name="need">
	                	<option value=""><?php if(empty($_SESSION['lang'])) echo "Please select" ;else echo " Vui lòng chọn "?></option>
	                    <option value="0" <?php echo (isset($_REQUEST['need']) && $_REQUEST['need'] == '0')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo "For sale" ;else echo " Cần bán "?></option>
	                    <option value="1" <?php echo (isset($_REQUEST['need']) && $_REQUEST['need'] == '1')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo "For lease/For rent" ;else echo " Cho thuê "?></option>
                	</select>
                	<div style="clear : both"></div>
                	<span class="txt"><?php if(empty($_SESSION['lang'])) echo "Tower:" ;else echo " Tòa nhà:"?>:</span>
                	<select class="slt_input" name="tower">
	                	<option value=""><?php if(empty($_SESSION['lang'])) echo "Please select" ;else echo " Vui lòng chọn "?></option>
						<?php $this->load->view("template/search_tower")?>
	                </select>
	                <div style="clear : both"></div>
                	<span class="txt"><?php if(empty($_SESSION['lang'])) echo "Type :" ;else echo " Loại BDS"?></span>
	                <select class="slt_input" name="Type">
	                	<option value=""><?php if(empty($_SESSION['lang'])) echo "Please select" ;else echo " Vui lòng chọn "?></option>
	                    <option value="0" <?php echo (isset($_REQUEST['Type']) && $_REQUEST['Type'] == '0')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo "Apartment" ;else echo " Căn hộ thường"?></option>
	                    <option value="1" <?php echo (isset($_REQUEST['Type']) && $_REQUEST['Type'] == '1')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo "Penthouse" ;else echo " Penthouse "?></option>
	                    <option value="2" <?php echo (isset($_REQUEST['Type']) && $_REQUEST['Type'] == '2')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo "Duplex" ;else echo " Duplex "?></option>
	                    <option value="3" <?php echo (isset($_REQUEST['Type']) && $_REQUEST['Type'] == '3')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo "Villa" ;else echo " Villa "?></option>
	                </select><div style="clear : both"></div>
                	<span class="txt"><?php if(empty($_SESSION['lang'])) echo "Furniture" ;else echo " Nội thất"?>:</span>
	                <select class="slt_input" name="Furniture">
	                	<option value=""><?php if(empty($_SESSION['lang'])) echo "Please select" ;else echo " Vui lòng chọn "?></option>
	                    <option value="0" <?php echo (isset($_REQUEST['Furniture']) && $_REQUEST['Furniture'] == '0')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo " Unfurnished" ;else echo " Nhà trống"?></option>
	                    <option value="1" <?php echo (isset($_REQUEST['Furniture']) && $_REQUEST['Furniture'] == '1')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo " Basic furniture" ;else echo " Nội thất cơ bản"?></option>
	                    <option value="2" <?php echo (isset($_REQUEST['Furniture']) && $_REQUEST['Furniture'] == '2')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo " Fully furnished" ;else echo " Nội thất đầy đủ"?></option>
	                    <option value="3" <?php echo (isset($_REQUEST['Furniture']) && $_REQUEST['Furniture'] == '3')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo " Fully furnished" ;else echo " Nội thất cao cấp"?></option>
	                </select><div style="clear : both"></div>
               		<span class="txt"><?php if(empty($_SESSION['lang'])) echo " Bedrooms: " ;else echo "Số phòng:"?></span>
                	<select class="txt_input fix_input" name="bedrooms">
						<option value="">0</option>
		                <?php for($i=1 ; $i<=6 ; $i++){?>
		                	<option value="<?php echo $i?>" <?php echo (isset($_REQUEST['bedrooms']) && $_REQUEST['bedrooms'] == $i)? 'selected="selected"':'';?>><?php echo $i?></option>
		                 <?php }?>
                	</select>

					<span class="gn">-</span>

                	<select class="slt_input fix_input" name="bedrooms2">
						<option value="">0</option>
		          		 <?php for($i=1 ; $i<=16 ; $i++){?>
		                	<option value="<?php echo $i?>" <?php echo (isset($_REQUEST['bedrooms2']) && $_REQUEST['bedrooms2'] == $i)? 'selected="selected"':'';?>><?php echo $i?></option>
		                 <?php }?>
	                </select><div style="clear : both"></div>

               		<span class="txt"><?php if(empty($_SESSION['lang'])) echo " Floors: " ;else echo "Số lầu:"?></span>
                	<select class="slt_input fix_input" name="floors">
						<option value="">0</option>
		          		<?php for($i=1 ; $i<=36 ; $i++){?>
							<option value="<?php echo $i?>" <?php echo (isset($_REQUEST['floors']) && $_REQUEST['floors'] == $i)? 'selected="selected"':'';?>><?php echo $i?></option>
		                <?php }?>
                	</select><span class="gn">-</span>
                	<select class="slt_input fix_input" name="floors2">
						<option value="">0</option>
          		 		<?php for($i=1 ; $i<=36 ; $i++){?>
                			<option value="<?php echo $i?>" <?php echo (isset($_REQUEST['floors2']) && $_REQUEST['floors2'] == $i)? 'selected="selected"':'';?>><?php echo $i?></option>
                 		<?php }?>
                	</select><div style="clear : both"></div>
               		<span class="txt"><?php if(empty($_SESSION['lang'])) echo "Area:" ;else echo "Diện tích:"?></span>
                	<select class="slt_input fix_input" name="area">
						<option value="">0</option>
          		 		<?php for($i=80 ; $i<=200 ; $i+=20){?>
                			<option value="<?php echo $i?>" <?php echo (isset($_REQUEST['area']) && $_REQUEST['area'] == $i)? 'selected="selected"':'';?>><?php echo $i?></option>
                 		<?php }?>
                 		<option value="<?php echo 300?>"><?php echo 300?></option>
                	</select><span class="gn">-</span>
                	<select class="slt_input fix_input" name="area2">
						<option value="">0</option>
	         		 	<?php for($i=80 ; $i<=200 ; $i+=20){?>
		                	<option value="<?php echo $i?>" <?php echo (isset($_REQUEST['area2']) && $_REQUEST['area2'] == $i)? 'selected="selected"':'';?>><?php echo $i?></option>
	    	            <?php }?>
	                 	<option value="<?php echo 300?>" <?php echo (isset($_REQUEST['area2']) && $_REQUEST['area2'] == '300')? 'selected="selected"':'';?>><?php echo 300?></option>
	                    <option value="<?php echo 500?>" <?php echo (isset($_REQUEST['area2']) && $_REQUEST['area2'] == '500')? 'selected="selected"':'';?>><?php echo 500?></option>
	                </select><div style="clear : both"></div>
					<span class="txt" style="text-decoration:underline; font-style:italic"><?php if(empty($_SESSION['lang'])) echo " Price: " ;else echo "Giá:"?></span>
                	<div class="clear"></div>
                 	<span class="txt"><?php if(empty($_SESSION['lang'])) echo " From: " ;else echo "Từ:"?></span>
                 	<input type="text" class="txt_input" name="price_from" value="<?php echo isset($_REQUEST['price_from'])? $_REQUEST['price_from']:'';?>"/><div style="clear : both"></div>
                	<span class="txt"><?php if(empty($_SESSION['lang'])) echo "To:" ;else echo "Đến:"?></span>
                	<input type="text" class="txt_input" name="price_to" value="<?php echo isset($_REQUEST['price_to'])? $_REQUEST['price_to']:'';?>"/><div style="clear : both"></div>
			         <select class="slt_input fix_input" style="margin:2px 5px 0 44px; width: 51px; height: 18px;" name="price_type">
	                	<option value="1" <?php echo (isset($_REQUEST['price_type']) && $_REQUEST['price_type'] == '1')? 'selected="selected"':'';?>>USD</option>
	                    <option value="2" <?php echo (isset($_REQUEST['price_type']) && $_REQUEST['price_type'] == '2')? 'selected="selected"':'';?>>SJC</option>
	                    <option value="3" <?php echo (isset($_REQUEST['price_type']) && $_REQUEST['price_type'] == '3')? 'selected="selected"':'';?>>VND</option>
	                </select>
     			    <select class="slt_input" name="tygia">
	                	<option value=""><?php if(empty($_SESSION['lang'])) echo "Please select" ;else echo " Vui lòng chọn "?></option>
	                    <option value="0" <?php echo (isset($_REQUEST['tygia']) && $_REQUEST['tygia'] == '0')? 'selected="selected"':'';?>>m<sub>2</sub></option>
	                    <option value="1" <?php echo (isset($_REQUEST['tygia']) && $_REQUEST['tygia'] == '1')? 'selected="selected"':'';?>><?php if(empty($_SESSION['lang'])) echo "month" ;else echo "Tháng"?></option>
                	</select>
                	<?php if(empty($_SESSION['lang'])){?>
						<input type="image" src="<?php echo base_url()?>public/images/home/timkiem_eng.gif" class="btn_search"/>
                    <?php } else {?>
                    	<input type="image" src="<?php echo base_url()?>public/images/home/timkiem_vie.gif" class="btn_search"/>
                    <?php }?>
            	</form>
        	</div>	<!--end search-->
        	<div class="btm_search"></div>
    	</div><!--end left-->
    	<div id="main">
	    	<?php
				if(empty($main))
					$main = "home";
				$this->load->view($main)
			?>
  		</div><!--end main-->
  		<div id="right">
	  		<div class="contact">
       			<p class="title_right"><?php if(empty($_SESSION['lang'])) echo "Contact";else echo "Liên Hệ"?> </p>
          		<p class="contact_info">
               		Tel: +84-90-880-8800 - <?php if(empty($_SESSION['lang'])) echo "Ms.Hanh";else echo "Chị Hạnh"?><br />
		  			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+84-91-888-1308 - <?php if(empty($_SESSION['lang'])) echo "Ms.Hanh";else echo "Chị Hạnh"?><br />
              		Email: <a href="mailto:hanh.khv@gmail.com" class="mail">hanh.khv@gmail.com</a>
          		</p>
        	</div>
        	<div class="contact_btm"></div>
       		<div class="contact">
            	<p class="title_right"><?php if(empty($_SESSION['lang'])) echo "Support Online";else echo "Hỗ trợ trực tuyến"?></p>
                <?php include ("right.php")?>
        	</div>
        	<!--div class="contact_btm"></div>
       		<div class="contact">
            	<p class="title_right"><?php if(empty($_SESSION['lang'])) echo "Viet Nam Gold's Price";else echo "Giá Vàng"?></p>
            	<table class="gold_info" id="ajax_gold"></table>
        	</div>
        	<div class="contact_btm"></div>
	       	<div class="contact">
            	<p class="title_right"><?php if(empty($_SESSION['lang'])) echo "Exchange Rates ";else echo "Tỷ giá ngoại tệ"?></p>
            	<table class="gold_info"  id="ajax_money"></table>
    	    </div-->
        	<div class="contact_btm"></div>
  		</div>
  	</div><!--end outer_3main-->
  	<div id="footer">
  		<?php if(empty($_SESSION['lang'])){ ?>
    		<span>Kim Hanh Viet One Member Co., Ltd</span><br />
    		Headquarters: 1st Floor - 622A. An Phu - An Phu Ward - Dist 2 - Ho Chi Minh City - Viet Nam<br />
    	<?php } else {?>
    		<span>Công Ty TNHH MTV Kim Hạnh Việt</span><br />
    		Địa chỉ: Lầu 1 - 622A. An Phú - Phường An Phú - Quận 2 - Thành phố Hồ Chí Minh - Việt Nam<br />
    	<?php }?>
		<!--Tel : 08.6281.3082 - Fax: 08.6281.3080<br/-->
    	Phone : +84-90-880-8800  -  +84-91-888-1308<br />
    	E-mail: <a href="mailto:kim.viet.ltd@gmail.com">kim.viet.ltd@gmail.com</a> - <a href="mailto:hanh.khv@gmail.com">hanh.khv@gmail.com</a><br />
  	</div><!--end footer-->
</div><!--end outer-->
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>
